// ===============================================
// app_user
//
// Create by Will on 8/3/2024 16:45
// Copyright @polynesia.All rights reserved.
// ===============================================

import 'package:json_annotation/json_annotation.dart';

import 'login_user.dart';
import 'token.dart';

part 'login_info.g.dart';

@JsonSerializable(genericArgumentFactories: true)
class LoginInfo {
  LoginInfo({
    this.token,
    this.user,
  });

  factory LoginInfo.fromJson(Map<String, dynamic> json) =>
      _$LoginInfoFromJson(json);

  final Token? token;
  final LoginUser? user;

  Map<String, dynamic> toJson() => _$LoginInfoToJson(this);
}
